export default{
    path: '/movie',
    component : () => import('@/views/Movie'),
    children:[
        {
            path:'city',
            component: () => import('@/components/City')
        },
        {
            path:'ComingSoon',
            component: () => import('@/components/ComingSoon')
        },
        {
            path:'NowPlaying',
            component: () => import('@/components/NowPlaying')
        },
        {
            path:'Search',
            component: () => import('@/components/Search')
        },
        {
            path:'Detail/1/:movieId',
            components:{
                default:()=>import('@/components/NowPlaying'),
                detail:()=>import('@/views/Movie/detail')
            },
            props:{
                detail:true
            }
        },
        {
            path:'Detail/2/:movieId',
            components:{
                default:()=>import('@/components/ComingSoon'),
                detail:()=>import('@/views/Movie/detail')
            },
            props:{
                detail:true
            }
        },
        {
            path:'/movie',
            redirect:'/movie/NowPlaying'
        }
    ]
}